package com.cloudkinto.extentity.stock;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class StockRecordTotalDto {
    @ApiModelProperty("良品")
    private int canSellCount;
    @ApiModelProperty("不良品")
    private int canotSellCount;
    @ApiModelProperty("维修中")
    private int repairingCount;
    @ApiModelProperty("冻结")
    private int freezeCount;
    @ApiModelProperty("在途")
    private int inTransit;

    @ApiModelProperty("在库总数")
    private int total;

    @ApiModelProperty("可用sku")
    private int skuCount;

    public int getTotal() {
        return canSellCount + canotSellCount + freezeCount;
    }
}
